package com.maiji.cloud.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.maiji.cloud.entities.login.UserSignInEntity;

@Mapper
public interface UserSignInMapper extends BaseMapper<UserSignInEntity>{
	/**
	 * 获取最后一次签到的数据
	 * @param userId
	 * @return
	 */
	UserSignInEntity selectOneByUserId(@Param("userId")String userId);
	/**
	 * 获得最后连续几天的签到记录
	 * @param userId
	 * @param limit
	 * @return
	 */
	List<UserSignInEntity> selectListByUserId(@Param("userId")String userId,@Param("limit") Integer limit);
	
	
}
